The shaping calculation of the radial inhomogeneous magnetic field for a 3He/ 4He mass spectrometer was completed by using this method, and the deviations of the real magnetic field from the desired one are less than 1 × 10-4. 用该方法完成了一台~3He/~4He质谱计分析磁铁径向非均匀磁场的成形计算,得到的场分布与设计要求值的相对偏差小于1×10~(-4)。